<script setup lang="ts">
import { Failure as AppNutIconFailure } from '@nutui/icons-vue-taro';
import { getCurrentInstance } from '@tarojs/taro';
const params = getCurrentInstance().router?.params as {
  error: string;
};
</script>

<template>
  <view class="scan-fail app-page--1">
    <app-navbar title="无数据" />
    <scroll-view class="app-page__wrapper" :scroll-y="true" :lower-threshold="100">
      <view class="scan-fail__wrapper">
        <view class="scan-fail__header-wrapper">
          <app-nut-icon-failure class="scan-fail__icon" />
        </view>

        <view v-if="params.error === 'unknown'">请扫描正确的二维码！!</view>
        <view v-else> 无法找到相关信息！</view>
      </view>
    </scroll-view>
  </view>
</template>

<style lang="scss">
@import './index.scss';
</style>
